﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Orders.Form
{
    public class OrderShippingForm
    {
        /// <summary>
        /// 订单id
        /// </summary>
        public long OrderId { get; set; }
        /// <summary>
        /// 送货方式 （0：3小时快速达，1：1小时极速达（加急费￥10），2：到店自取）
        /// </summary>
        public ShippingType ShippingType { get; set; }
        /// <summary>
        /// 收货人
        /// </summary>
        [MaxLength(20)]
        public string Receiver { get; set; }
        /// <summary>
        /// 收货人电话
        /// </summary>
        [MaxLength(20)]
        public string ReceiverPhone { get; set; }
        /// <summary>
        /// 收货人地址
        /// </summary>
        [MaxLength(50)]
        public string ReceiverAddress { get; set; }
        /// <summary>
        /// 邮政编码
        /// </summary>
        [MaxLength(10)]
        public string PostalCode { get; set; }

        /// <summary>
        /// 是否是朋友地址
        /// </summary>
        public bool IsFriendAddress { get; set; }
    }
}
